﻿<%@ Page Title="Add Customer / Vendor" Language="C#" MasterPageFile="~/POS.master" AutoEventWireup="true" CodeFile="AddEditCustomer.aspx.cs" Inherits="Parties_AddEditCustomer" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <style type="text/css">
        textarea
        {
            resize:none;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
     <div class="container">
        <div class="form-horizontal" id="divCustomerWrapper">
            <div class="form-group">
                <label class="control-label col-sm-4" for="Name">Name :</label>
                <div class="col-sm-6">
                    <input type="text" id="txtCustomerName" class="form-control" placeholder="Name" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Person">Contact Person :</label>
                <div class="col-sm-6">
                    <input type="text" id="txtContactPerson" class="form-control" placeholder="Contact Person" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Cell">Cell # :</label>
                <div class="col-sm-6">
                    <input type="text" id="txtCellNo" class="form-control" placeholder="Cell No" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Phone">Phone # :</label>
                <div class="col-sm-6">
                    <input type="text" id="txtPhoneNo" class="form-control" placeholder="Phone No" />
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="City">City :</label>
                <div class="col-sm-6">
                    <input type="text" id="txtCity" class="form-control" placeholder="City" onkeyup="getCities('txtCity','hdnCityId')" />
                    <input type="hidden" id="hdnCityId" />
                    <div id="cities" class="div-filter"></div>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Address">Type :</label>
                <div class="col-sm-6">
                    <select id="ddlType" class="form-control" style="width: 99%;">
                        <option value="Customer">Customer</option>
                        <option value="Vendor">Vendor</option>
                        <option value="Both">Both</option>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-sm-4" for="Address">Address :</label>
                <div class="col-sm-6">
                    <textarea id="txtAddress" rows="3" class="form-control" placeholder="Address" style="width: 99%;"></textarea>
                </div>
            </div>
            <div class="form-group">
                <div class="col-sm-offset-4 col-sm-8">
                    <input type="button" id="btnSave" class="btn btn-success" value="Save" onclick="saveCustomer()" />
                </div>
            </div>
        </div>
    </div>
    <script src='<%= ResolveUrl("Parties.js") %>'></script>
</asp:Content>

